print('Hello from Lua script!')

-- 调用 C++ 函数
local result = cpp_function(10)
print('Result from C++ function:', result)

-- 定义一个 Lua 函数，供 C++ 调用
function lua_function(x)
    print('Lua function called from C++ with argument:', x)
    return x * 3
end